<?php
require_once('engine/base.php');

function do_matricula($id_alumno_carrera,$alumno){
?>

	<div class="alert alert-warning" role="alert" align="center"><strong>ALUMNO NO MATRICULADO:</strong> Desea Matricularlo?</div>
	<div align="center">
	<a href="index.php?pag=alumno_matricula&id_alumno_carrera=<?php echo $id_alumno_carrera;?>&alumno=<?php echo $alumno;?>" class="btn btn-primary" role="button">Aceptar</a> 
	<a href="index.php?pag=alumnos_enfermeria" class="btn btn-default" role="button">Cancelar</a></p>
	</div>
<?php
}

function do_matriculado($id_alumno_carrera){
	$query = mysql_query('
								SELECT id_alumno_carrera
								FROM matriculas
								WHERE id_alumno_carrera ='.$id_alumno_carrera
	);
	$matriculado = mysql_fetch_object($query);
	return $matriculado;
}

function do_importe($id_alumno_carrera){
	$query = mysql_query('
				SELECT importe_cuota
				FROM carreras_importes
				INNER JOIN cuotas USING(id_carrera_importe)
				WHERE id_alumno_carrera = "'.@$id_alumno_carrera.'"
				ORDER BY mes DESC
				LIMIT 1
		');
	$value = mysql_fetch_object($query);
	return @$value->importe_cuota;
	
}
?>